package pokerserver.core;

/**
 * Utilities class, used for various tasks, and can be built out.
 */
public class Utils {

	/**
	 * Returns the number of non-null elements in a given array.
	 */
	public static int elementsInArray(Object[] elements) {
		int counter = 0;
		for (int i = 0; i < elements.length; i++) {
			if (elements[i] != null) {
				counter++;
			}
		}
		return counter;

	}
}
